﻿Imports System
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
Imports System.Drawing.Text
Imports System.Reflection
Imports System.Windows.Forms
Imports System.Web

Public Class Captchaest
    Inherits System.Web.UI.Page
    'Public Sub ProcessRequest(ByVal context As System.Web.HttpContext) Implements System.Web.IHttpHandler.ProcessRequest
    'Dim app As HttpApplication = context.ApplicationInstance

    'to get the unique GUID of captcha

    'Dim strGuid As String = Convert.ToString(app.Request.QueryString("guid"))

    'Dim ci As CaptchaImage
    'If strGuid = "" Then
    'builds a CAPTCHA image with all default settings 

    'ci = New CaptchaImage
    'Else
    'get the CAPTCHA from the ASP.NET cache by GUID

    'ci = CType(app.Context.Cache(strGuid), CaptchaImage)
    'app.Context.Cache.Remove(strGuid)
    'End If

    'write the image to the HTTP output stream as an array of bytes

    'ci.Image.Save(app.Context.Response.OutputStream, _
    'Drawing.Imaging.ImageFormat.Jpeg)

    'allow the browser know we are sending an image,

    'app.Response.ContentType = "image/jpeg"
    'app.Response.StatusCode = 200
    'app.Response.End()


End Class
